import Vue from 'vue';
import vuels from 'vue-ls';
import App from './App.vue';
import store from './store';
import themeVue from 'theme-vue';
import ElementUI from 'element-ui';
import FileIcon from '@/components/fileIcon';
import { getSystemInfo } from '@/api/common';

Vue.config.productionTip = false;

new themeVue().changeTheme('#1c64f2');

import '@/styles/index.scss';
//加载项目基本配置
import '@/utils/config';

//加载SVG图标
import '@/assets/icons';

Vue.use(ElementUI);

Vue.use(FileIcon);

Vue.use(vuels, {
	name: 'local',
	namespace: 'sw_',
	storage: 'local',
});



new Vue({
	store,
	async beforeCreate() {
		await this.$store.dispatch('init');
		this.$mount('#app');
	},
	render: h => h(App)
})